f18e94d355e9f8a1fb9d3d7c32f8975d4694369d,src/main/java/com/gearservice/config/SecurityConfiguration.java,SecurityConfiguration,configureGlobal,#AuthenticationManagerBuilder#,35
Before Change
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth
.userDetailsService(userDetailsService).and()
.jdbcAuthentication()
.dataSource(dataSource)
.withUser("user").password("b").roles("USER").and()
After Change
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth
.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder()).and()
.jdbcAuthentication().dataSource(dataSource)
.withUser("user").password(passwordEncoder().encode("b")).roles("USER").and()
.withUser("admin").password(passwordEncoder().encode("b")).roles("USER", "ADMIN").and()